package com.crm.system.service.impl.couponManager;

import com.crm.model.entity.couponManager.CustomerContractCoupon;
import com.crm.service.couponManager.ContractCouponDbService;
import com.crm.system.service.couponManager.ContractCouponService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author luojie
 * @date 2021/5/21 16:13
 */
@Service
public class ContractCouponServiceImpl implements ContractCouponService {

    @Autowired
    private ContractCouponDbService contractCouponDbService;

    /***
     * @Description:根据合同id查询合同优惠券信息
     * @Param:contractId 合同id
     * @Author: luojie
     * @Date: 2021/5/21 16:11
     */
    @Override
    public List<CustomerContractCoupon> selectContractCouponByContractId(String contractId) {
        List<CustomerContractCoupon> customerContractCouponList = contractCouponDbService.selectContractCouponByContractId(contractId);
        return customerContractCouponList;
    }
}
